﻿<UserControl x:Class="Rio.Framework.Pages.Controls.ListFolderSearchControl"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             xmlns:Grid="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.GridView"
             xmlns:DataPager="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Data"
             xmlns:GridRow="clr-namespace:Telerik.Windows.Controls.GridView;assembly=Telerik.Windows.Controls.GridView"
             xmlns:telerikNavigation="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Navigation"
             xmlns:ToolKit="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Toolkit"
             mc:Ignorable="d"
             d:DesignHeight="300"
             d:DesignWidth="400">

    <UserControl.Resources>
        <Style x:Key="GridViewRowStyle"
               TargetType="GridRow:GridViewRow">
            <Setter Property="IsTabStop"
                    Value="False" />
            <Setter Property="Background"
                    Value="#FFFFFFFF" />
            <Setter Property="BorderBrush"
                    Value="#FFB3B3B3" />
            <Setter Property="Foreground"
                    Value="#FF000000" />
        </Style>
        <Style x:Key="GridViewAlternateRowStyle"
               TargetType="GridRow:GridViewRow">
            <Setter Property="Background"
                    Value="#FFEDECD8" />
        </Style>
    </UserControl.Resources>

    <Grid HorizontalAlignment="Stretch"
          VerticalAlignment="Stretch">
        <Grid.RowDefinitions>
            <RowDefinition Height="*" />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>

        <!--<TextBlock Grid.Row="0"
                   Name="LabelNbrOfFolderResults"
                   HorizontalAlignment="Right"
                   Margin="5,5,5,0"
                   VerticalAlignment="Bottom"
                   Visibility="Collapsed"
                   Height="30" />-->

        <Grid:RadGridView CanUserDeleteRows="True"
                          x:Name="GridViewDoc"
                          Grid.Row="0"
                          SelectionMode="Extended"
                          AutoGenerateColumns="False"
                          RowDetailsVisibilityChanged="GridViewDoc_RowDetailsVisibilityChanged"
                          DataLoaded="GridViewDoc_DataLoaded"
                          Language="fr"
                          ShowGroupPanel="True"
                          AlternationCount="2"
                          AlternateRowStyle="{StaticResource GridViewAlternateRowStyle}"
                          GridLinesVisibility="Horizontal"
                          IsFilteringAllowed="True">
        </Grid:RadGridView>


        <DataPager:RadDataPager x:Name="DataPagerDoc"
                                Grid.Row="1"
                                DisplayMode="FirstLastPreviousNextNumeric"
                                IsTotalItemCountFixed="True"
                                ScrollViewer.HorizontalScrollBarVisibility="Auto"
                                PageSize="30"
                                NumericButtonCount="10"
                                Source="{Binding ListDocument}" />
    </Grid>
</UserControl>
